<?php

namespace app\admin\model;

use think\Model;

class User extends Model
{
    //绑定表格
    protected $table='user';

    //入库
    public static function userAdd($params){
        return self::create($params,true);
    }

    //获取所有数据
    public static function getUserAll(){
        return self::all();
    }
    //修改审核状态
    public static function updateState($params){
        return self::update($params,$params,true);
    }
}
